*,:before,:after{
	box-sizing: border-box;
	margin: 0;
	transition: .4s;
}

body{
	background:#616161 url(../images/bg.jpg) center/cover no-repeat;
	height: 100vh;
	overflow: hidden;
	color: #fff;
}

.modal{
	height: 400px;
	width: 650px;

	margin: auto;
	box-shadow: 0 15px 35px rgba(0,0,0,0.8);
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	transition: .4s,box-shadow .3s .4s;

}
.modal input{
	background: rgba(255,255,255,0.15);
	width: 100%;
	padding: 6px;
	margin: 12px 0;
	border-radius: 5px;
	outline: none;
	color: #fff;
	font-size: 20px;
}
.modal input:-webkit-autofill{
	-webkit-box-shadow:0 0 0px 500px #7a7a7a inset;
	-webkit-text-fill-color:#fff;
}
.modal label{
	color: #FB5781;
	margin-top: 40px;
}

.modal button{
	background: linear-gradient(-45deg,#f857a6,#ff5858);
	padding: 10px 20px;
	border:none;
	border-radius: 21px;
	outline: none;
	overflow: hidden;
	position: absolute;
	bottom: 20px;
	left: 50%;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transform: translateX(-50%);
}


/*鼠标放置的时候白光从左边闪到右边*/
.modal button:before{      /*以下属性在botton之前*/
	content: '';
	background: rgba(255,255,255,0.3);
	height: 100%;
	width: 65px;
	position: absolute;
	top: 0;
	left:-100%;        /*从botton按钮的左侧开始*/
	transform: skew(-45deg);/*倾斜45度*/
	transition: 0s;
}

.modal button:hover:before{
	left:100%;         /*到botton按钮的右侧结束*/
	transition: 0.3s;
}

.modal .form,.invite{
	background: rgba(71,71,71,0.6);
	width: 50%;
	height: 100%;
	padding: 25px;
	color: white;
	position: absolute;
	top: 0;
	left: 0;
}
.modal .invite{
	background: linear-gradient(-45deg,#f857a6,#ff5858);
	left:50%;
}
.modal .nope, .nope1{
	background: #474747;
	padding: 10px 15px;
	border-radius: 30px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.25);
	bottom: 30px;
	left: 35%;
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
	transform: translateX(-50%);
	position: absolute;
}
.modal .nope:hover, .nope1:hover{
	box-shadow: 0 5px 10px rgba(0,0,0,0.25);
	transform: translateX(-50%);
}
/*关闭按钮做法*/
.close{
	background: #474747;
	height: 30px;
	width: 30px;
	border:3px solid #fff;
	border-radius: 50%;
	position: absolute;
	top: -15px;
	right: -15px;
	cursor: pointer;
	transition: .4s .3s;
}
.close:before, .close:after{
	content: '';
	background: #fff;
	height: 80%;
	width:3px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%) rotate(-45deg); /*translate定位和旋转-45度的棍子*/
}
.close:after{
	transform: translate(-50%,-50%) rotate(45deg); /*translate定位和旋转45度的棍子*/
}


/*关闭登录效果*/
.open{
	/*颜色渐变
	朝着-45度开始渐变，颜色从#f857a6过渡到#ff5858
	*/
	background: linear-gradient(-45deg,#f857a6,#ff5858);
	height: 45px;
	width: 150px;
	padding: 10px 20px;
	margin: auto;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;right: 0;
	font-size: 20px;
	text-align: center;
	white-space: nowrap;
	/*文本不会换行，文本会在同一行上继续，直到遇到<br>标签为止*/
	cursor: pointer;
	opacity:0;     
	visibility: hidden;  /*让open盒子不显现*/
}
.open.active{
	/*元素的不透明级别*/
	opacity: 1;
	/*CSS visibility属性规定元素是否可见
	visible 元素可见  hidden 元素不可见
	*/
	visibility: visible;  /*让open盒子显现*/
}
.open:hover{
	box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}
.modal.hidden{
	box-shadow: none;
	transition: .4s,box-shadow 0s;
	opacity: 0;
	visibility: hidden;  /*看不见（去除）modal这个盒子及效果*/
}
.modal.hidden .form{
	top: 100%;  /*左边盒子往下滑*/
}
.modal.hidden .invite{
	top: -100%;   /*右边盒子往上滑*/
}
.modal .hidden .invite .close{
	height: 0;
	width: 0;
	top: 0;
	right: 0;
}